#ifndef _CHECKSUM_H_
#define _CHECKSUM_H_

#include <stdlib.h>
#include <string.h>
#include <windows.h>
#define STR_BLOCK_SIZE 3 //two digit number + space
#define SIZE 256

int MyAtoi(char num1, char num2);

//convert string data into integer
void convertToBuffer(char *str, int *buffer, int I);

//use converted buffer integer data to calculate checksum
void checkSum(int *buffer, int I, int *CK_A, int *CK_B);
int generateCommand(char *StrCommand, BYTE** ByteCommand);
void printElement(BYTE *ByteCommand, int section_num);

#endif